package controllers;

import GUI.LoginGUI;
import GUI.WorkerGUI;
import entity.User;

public class WorkerController  {
	
	User user;
	WorkerGUI workerWindow;
	LoginGUI loginWindow;
	
	public WorkerController(User user){
	
	this.user=user;

	}

	public void activateGUI(){
		
		System.out.println("Open Worker: " +user.getFname() + "Window");
		workerWindow= new WorkerGUI();
		loginWindow= new LoginGUI();
		this.loginWindow.setVisible(false);
		workerWindow.setVisible(true);
	}


	
}